import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
import fontSize from './util/font-rem'
import { List, Toast, PullRefresh, Notify, Dialog, Loading ,ShareSheet ,Skeleton, Popup  } from 'vant';

Vue.config.productionTip = false

// router.beforeEach((to, from, next) => {
//   document.documentElement.scrollTop = 0;
//   next()
// })

Vue.use(Vant)
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(Toast);
Vue.use(Notify);
Vue.use(fontSize)
Vue.use(Skeleton);
Vue.use(Loading);
Vue.use(Dialog);
Vue.use(Popup);
Vue.use(ShareSheet);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
